package com.king01.service;

import com.king01.dao.StaffDao;
import com.king01.entity.Branch;
import com.king01.entity.Department;
import com.king01.entity.Role;
import com.king01.entity.Staff;
import com.king01.vo.Result;
import com.king01.vo.StaffExVo;
import com.king01.vo.StaffVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @param
 * @create by: lqs
 * @description:
 * @create time:
 * @return
 */

public interface StaffService {
    //前后端分离，前端请求都是使用ajax请求，那么返回给前端的数据应该都是一个统一格式的数据
    public Result findByNameAndPwd(String name, String pwd);

    public Result findAll(Integer current, Integer pageSize, StaffVo staffVo);


    //离职按钮
    public Result update1(Integer staffid);

    //    Result insert(Staff staff);
//编辑确认按钮
    public Result update2(Staff Staff);

    //下拉框
    public Result select1();

    //
    public Result select2();

    //
    public Result select3();

    //添加信息
    public Result add1(Staff staff);

    //判断是否调用中
    public Result selectIF(Integer staffid);

    //插入数据
    public Result add2(StaffExVo staffExVo);

    // 冻结
    public Result dj1(Integer staffid);

    public Result dj2(Integer staffid);

    //查询所有的staffid
    public Result findAllStaffByStaffid();

    //    查找所有的非店长员工
    public Result findAllStaff();
}
